<include file="Public/min-header"/>
<div class="wrapper">
    <include file="Public/breadcrumb"/>
    <!-- Main content -->
    <section class="content">
        <div class="container-fluid">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h3 class="panel-title"><i class="fa fa-list"></i> 订单详情</h3>
                </div>
                <div class="panel-body">

                    <div  >

                        <form method="post" enctype="multipart/form-data" target="_blank" id="form-order">
                            <div class="table-responsive">
                                <table class="table table-bordered table-hover">
                                    <thead>
                                    <tr>
                                        <td class="text-left"  >店铺名称</td>
                                        <td class="text-left"   >所在平台</td>
                                        <td class="text-left"   >店铺类型</td>
                                        <td class="text-left"   >店铺价格</td>
                                        <td class="text-left"   >保证金</td>
                                        <td class="text-left"   >技术年费</td>
                                        <td class="text-left"   >手续费</td>
                                        <td class="text-left">时间</td>
                                        <!--<td class="text-left">状态</td>-->
                                        <!--<td class="text-left"></td>-->
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <volist name="lists" id="list">
                                        <tr>
                                            <td class="text-left">{$list.goods.seller_name}</td>
                                            <td class="text-left">
                                                <if condition="$list[goods][goods_type] eq 3">
                                                    天猫
                                                    <elseif condition="$list[goods][goods_type] eq 4"/>
                                                    淘宝
                                                    <elseif condition="$list[goods][goods_type] eq 5"/>
                                                    京东
                                                    <else/>
                                                    其他
                                                </if>

                                            </td>
                                            <td class="text-left">
                                                <if condition="$list[goods][goods_type] eq 3 or $list[goods][goods_type] eq 5">
                                                        <php>$name=$storeType_tm[$list[goods][store_type]]; echo $name;</php>
                                                </if>



                                            </td>
                                            <td class="text-left">{$list.price}</td>
                                            <td class="text-left">{$list.b_price}</td>
                                            <td class="text-left">{$list.j_price}</td>
                                            <td class="text-left">{$list.s_price}</td>

                                            <td class="text-left">{$list.add_time|date='Y-m-d H:i:s',###}</td>
                                            <!--<td class="text-left">111 </td>-->
                                        </tr>
                                    </volist>
                                    </tbody>
                                </table>
                            </div>
                        </form>
                        <div class="row">
                            <div class="col-sm-3 text-left">
                            </div>
                            <div class="col-sm-6 text-right">{$page}</div>
                        </div>
                        <script>
                            $(".pagination  a").click(function(){
                                var page = $(this).data('p');
                                ajax_get_table('search-form2',page);
                            });
                        </script>
                    </div>
                </div>
            </div>
        </div>        <!-- /.row -->
    </section>
    <!-- /.content -->
</div>
<!-- /.content-wrapper -->
<script>
    $(document).ready(function(){
//        ajax_get_table('search-form2',1);

    });

    // ajax 抓取页面
    function ajax_get_table(tab,page){
        return;
        cur_page = page; //当前页面 保存为全局变量
        $.ajax({
            type : "POST",
            url:"/Admin/user/ajaxindex/p/"+page,//+tab,
            data : $('#'+tab).serialize(),// 你的formid
            success: function(data){
                $("#ajax_return").html('');
                $("#ajax_return").append(data);
            }
        });
    }

    // 点击排序
    function sort(field)
    {
        $("input[name='order_by']").val(field);
        var v = $("input[name='sort']").val() == 'desc' ? 'asc' : 'desc';
        $("input[name='sort']").val(v);
        ajax_get_table('search-form2',cur_page);
    }

    //发送站内信
    function send_message(id)
    {
        var obj = $("input[name*='selected']");
        var url = "{:U('Admin/User/sendMessage')}";
        if(obj.is(":checked")){
            var check_val = [];
            for(var k in obj){
                if(obj[k].checked)
                    check_val.push(obj[k].value);
            }
            url += "?user_id_array="+check_val;
        }
        layer.open({
            type: 2,
            title: '站内信',
            shadeClose: true,
            shade: 0.8,
            area: ['580px', '480px'],
            content: url
        });
    }

    //发送邮件
    function send_mail(id)
    {
        var obj = $("input[name*='selected']");
        var url = "{:U('Admin/User/sendMail')}";
        if(obj.is(":checked")){
            var check_val = [];
            for(var k in obj){
                if(obj[k].checked)
                    check_val.push(obj[k].value);
            }
            url += "?user_id_array="+check_val;
            layer.open({
                type: 2,
                title: '发送邮箱',
                shadeClose: true,
                shade: 0.8,
                area: ['580px', '480px'],
                content: url
            });
        }else{
            layer.msg('请选择会员');
        }

    }

    /**
     * 回调函数
     */
    function call_back(v) {
        layer.closeAll();
        if (v == 1) {
            layer.msg('发送成功');
        } else {
            layer.msg('发送失败');
        }
    }


</script>
</body>
</html>